Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Conversation

@Vittly
Copy link

@Vittly Vittly commented Oct 13, 2017

Before:

// >>> Foo.js

// import from node_modules/bem-react-components
import Button from 'b:Button';

export default decl({ block: 'Foo', ... });

// >>> Foo.test.js

import Foo from 'b:Foo'; // we have error over here!
// unexpected import inside bem-react-components/block/Button/... or something!

test(...);

After:

{
    "levels": {
    },
    "modules": {
        "create-bem-react-app": {
            "testsTransformIgnore": ["node_modules[/\\\\](?!bem-react-components)"]
        }
    }
}

🌈

@Vittly Vittly force-pushed the allow-node-modules-in-jest-transform branch from 9f7979a to 77223d4 Compare October 13, 2017 12:39
@awinogradov
Copy link
Member

👍

@awinogradov awinogradov merged commit 94c6b27 into bem:master Oct 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants